<?php

declare(strict_types=1);

namespace app\api\controller;

use app\common\tool\Result;

class Other extends Base
{
    /**
     * 获取轮播列表
     */
    public function getCarousel($type)
    {
        try {
            $list = \app\common\model\Carousel::where(['type'=> $type,'status'=>1])->field('id,images,title')->select();
            return Result::success('获取成功！', $list);
        } catch (\Exception $e) {
            return Result::fail($e->getMessage());
        }
    }
    /**
     * 
     */
}
